﻿@import './variables.less';
@import '../font-awesome/less/font-awesome.less';

body {
  margin: 0;
  min-height: 300px;
  overflow-x: auto;
  background-color: #ebeef5;
}

.layout {
  padding: 0;
  display: flex;
  flex-flow: row nowrap;
  width: 100%;

  > .main-content {
    position: relative;
    overflow: auto;
    display: inline-block;
    width: 100%;

    > .content-panel {
      position: relative;
      padding: 0 5px 0 5px;
      background: transparent;

      > .content-body {
        width: 100%;
        overflow: hidden;
        color: #222;
        background-color: transparent;
        margin: 0;
        margin-top: 6px;
        margin-bottom: 6px;
        position: relative;

        > .van-empty {
          background: #fff;
          margin-top: 5px;
          border-radius: 5px;
        }
      }
    }
  }
}

div,
ul,
form,
pre {
  &::-webkit-scrollbar {
    width: 6px;
    height: 8px;
  }

  &::-webkit-scrollbar-track {
    border-radius: 0;
    background-color: transparent;
  }

  &::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background-color: #1e91e8;
  }
}

body::-webkit-scrollbar {
  width: 6px;
  height: 8px;
}

body::-webkit-scrollbar-track {
  border-radius: 0;
  background-color: transparent;
}

body::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.2);
}

.van-nav-bar {
  vertical-align: middle !important;
  color: #fff !important;
  align-items: center !important;
  background: #1e91e8 !important;
}

.van-nav-bar__title {
  color: #fff !important;
}

.van-pagination {
  margin-top: 5px;
  background: #fff;
  border-radius: 5px;

  > ol,
  ul {
    border-radius: 5px;
  }
}

div.selectors {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  color: #333;
  text-align: center;
  margin: 0px;
  justify-content: space-between;

  > div {
    flex: 0 0 calc((100vw - 25vw) / 2);
    font-size: 14px;
    font-weight: normal;
    padding: 0 12px;
    line-height: 30px;
    min-height: 32px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    position: relative;
    margin-bottom: 6px;
    text-align: left;
    background-color: #fff;
    letter-spacing: -0.04em;
    border: 0.5px solid #ccc;
    border-radius: 6px;

    &:after {
      font-family: 'vant-icon';
      content: '\e65e';
      position: absolute;
      top: 2px;
      right: 8px;
    }
  }

  &.full {
    > div {
      flex: 1;
    }
  }

  &.col-3 {
    > div {
      flex: 0 0 calc((100vw - 25vw) / 3);
      font-size: 10px;
      padding: 0 5px;
      line-height: 32px;
      margin-right: 6px;
      flex-grow: 1;

      &:after {
        top: 2px;
        right: 4px;
      }

      &:last-of-type {
        margin-right: 0;
      }
    }
  }
}

.echarts-tooltip {
  display: none;
  z-index: 999 !important;
  padding: 10px 10px !important;
  border-radius: 5px !important;
  border-color: #000000f2 !important;
  background: #000000f2 !important;

  > h2 {
    font-style: normal;
    font-weight: 700;
    margin: 0;
    padding: 5px 0;
    font-size: 16px !important;
    line-height: 20px !important;
    align-items: center;
    letter-spacing: 0.15px;
    font-family: 'Montserrat' !important;

    color: #ffffff !important;
  }

  > h3 {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    margin: 10px 0 5px 0;
    padding: 0;
    letter-spacing: 0.15px;
    color: rgba(255, 255, 255, 0.7);

    display: flex;
    min-width: 140px;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: space-between;
  }

  b {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.15px;
    color: #ffffff;
  }
}

@media screen and (min-width: 600px) {
  div.selectors {
    > div {
      flex: 0 0 calc((100vw - 3rem) / 2);
    }

    &.col-3 {
      > div {
        flex: 0 0 calc((100vw - 3rem) / 3);
      }
    }
  }
}
